<template>
	<view class="content">
		<view class="item">
			<view class="left">姓名</view>
			<view class="right">{{ leaveItem.userName }}</view>
		</view>
		<view class="item">
			<view class="left">申请提交时间</view>
			<view class="right">{{ leaveItem.applyDate }}</view>
		</view>
		<view class="item">
			<view class="left">开始日期</view>
			<view class="right">{{ leaveItem.startDate }}</view>
		</view>
		<view class="item">
			<view class="left">结束日期</view>
			<view class="right">{{ leaveItem.endDate }}</view>
		</view>
<!-- 		<view class="item">
			<view class="left">是否通过</view>
			<view class="right">{{ leaveItem.isPass }}</view>
		</view> -->
		<view class="item">
			<view class="left">申请内容</view>
			<view class="right">{{ leaveItem.content }}</view>
		</view>
		<view class="head">审核信息</view>
		<view class="item">
			<view class="left">审核状态</view>
			<view class="right">{{ leaveItem.auditStatus_dictText }}</view>
		</view>
		<view class="item">
			<view class="left">审核人</view>
			<view class="right">{{ leaveItem.auditorName || '暂无' }}</view>
		</view>
		<view class="item">
			<view class="left">审核时间</view>
			<view class="right">{{ leaveItem.auditTime || '暂无' }}</view>
		</view>
		<view class="item">
			<view class="left">审核意见</view>
			<view class="right">{{ leaveItem.auditSuggestion || '暂无' }}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				leaveItem:{}
			}
		},
		onLoad() {
			this.leaveItem = JSON.parse(uni.getStorageSync('leaveItem'))
			console.log(this.leaveItem)
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding: 20rpx;
		background-color: #f5f6f7;
		min-height: 100vh;
		.item{
			display: flex;
			justify-content: space-between;
			align-items: flex-start;
			background-color: #fff;
			padding: 30rpx 20rpx;
			border-bottom: 1px solid #f4f1f1;
			font-size: 26rpx;
			border-radius: 15rpx;
			.left{
				color: #999;
			}
			.right{
				color: #000000;
			}
			.head{
				padding: 20rpx;
				color: #000;
				font-size: 25rpx;
				margin: 20rpx 0;
			}
		}
	}
</style>
